package com.example.demo.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 数据清理
 *
 * @author Liunh
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class DataCleaning implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(name = "id", value = "id", required = false, example = "1")
    private Long id;

    @ApiModelProperty(name = "reviewId", value = "审查id", required = false, example = "")
    private Long reviewId;

    @ApiModelProperty(name = "barCode", value = "图书条码", required = false, example = "")
    private String barCode;

    /**
     * 所属馆机构号
     */
    @ApiModelProperty(name = "orgCode", value = "所属馆机构号", required = false, example = "")
    private String orgCode;

    @ApiModelProperty(name = "sysUniqueId", value = "图书平台方编号", required = false, example = "")
    private String sysUniqueId;

    @ApiModelProperty(name = "sysId", value = "图书平台方数据id", required = false, example = "")
    private String sysId;

    @ApiModelProperty(name = "userId", value = "清理人id", required = false, example = "")
    private Integer userId;

    /**
     * 是否已同步(0否;1是)
     */
    @ApiModelProperty(name = "isSync", value = "是否已同步(0否;1是)，定时任务处理", required = false, example = "")
    private Integer isSync;

    @ApiModelProperty(name = "title", value = "清理标题", required = false, example = "")
    private String title;

    @ApiModelProperty(name = "descr", value = "清理原因", required = false, example = "")
    private String descr;

    @ApiModelProperty(name = "batchNo", value = "审查编号", required = false, example = "")
    private String batchNo;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "createTime", value = "创建时间", required = false, example = "")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    private Date createTime;

}
